package com.list01.example01;

public class User {
    String userName;
    String password;
public  boolean login(String userNameParam,String passwordParam){
    System.out.println("传递过来的用户名："+ userNameParam);
    System.out.println("传递过来的密码："+ passwordParam);
    if (userNameParam.equals("admin")&& passwordParam.equals("123456")){
        return  true;
    }else {
        return false;
    }
}
}
